<template>
  <section class="container">
    <div>
      <mt-header fixed title="固定在顶部"/>
      <logo/>
      <h1 class="title" @click="hello('hello')">
        ms_front
      </h1>
      <h2 class="subtitle">
        Micro vision front end project
      </h2>
      <div class="links">
        <a
          href="https://nuxtjs.org/"
          target="_blank"
          class="button--green">Documentation</a>
        <a
          href="https://github.com/nuxt/nuxt.js"
          target="_blank"
          class="button--grey">GitHub</a>
      </div>
    </div>
  </section>
</template>

<script lang="ts">
import { Component, Vue } from 'nuxt-property-decorator'
import { State } from 'Vuex-class'

import { Toast } from 'mint-ui'

import Logo from '~/components/Logo.vue'

@Component({
  components: {
    Logo
  }
})
export default class extends Vue {
  created() {
    // Toast('hello')
  }

  hello(helo) {
    Toast(helo)
  }
}
</script>

<style>
.container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.title {
  font-family: 'Quicksand', 'Source Sans Pro', -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  display: block;
  font-weight: 300;
  font-size: 100px;
  color: #35495e;
  letter-spacing: 1px;
}

.subtitle {
  font-weight: 300;
  font-size: 42px;
  color: #526488;
  word-spacing: 5px;
  padding-bottom: 15px;
}

.links {
  padding-top: 15px;
}
</style>
